-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Auth page when user login #107
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/signin | ||
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/join | ||
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/ | ||
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to be the home page or should it be /settings
in the membership tab so that people have direct access to pay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aftersignin here is not the main logic. if you want this, we have to do it code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is for, like google login, redirect url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, okay
src/middleware.ts
Outdated
publicRoutes: (req) => { | ||
return !authRoutes.includes(req.nextUrl.pathname); | ||
}, | ||
publicRoutes: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also add /not-found
?
src/env.mjs
Outdated
@@ -15,10 +15,19 @@ export const env = createEnv({ | |||
client: { | |||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: z.string().min(1), | |||
NEXT_PUBLIC_DRIVE_LINK: z.string().url().min(1), | |||
// Clerk URLs. Redundant, but there is no other way from Clerk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might reword this a bit but the general idea is there.
Description
Add logic to verify user when visit auth page
Changes Made
Related Issues
N/A
Additional Notes
N/A